package com.shop.member.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.shop.common.annotation.Excel;
import com.shop.common.core.domain.BaseEntity;

/**
 * 会员对象 shop_user
 * 
 * @author hao_wu
 * @date 2022-04-04
 */
public class ShopUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户编号 */
    private Long id;

    /** 头像图片 */
    @Excel(name = "头像图片")
    private String avatar;

    /** 邮箱号码 */
    @Excel(name = "邮箱号码")
    private String email;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickName;

    /** 性别 */
    @Excel(name = "性别")
    private Long sex;

    /** 状态（0：正常，1：禁用） */
    @Excel(name = "状态", readConverterExp = "0=：正常，1：禁用")
    private String enabled;

    /** 用户个性签名 */
    @Excel(name = "用户个性签名")
    private String userDel;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }
    public void setEnabled(String enabled) 
    {
        this.enabled = enabled;
    }

    public String getEnabled() 
    {
        return enabled;
    }
    public void setUserDel(String userDel) 
    {
        this.userDel = userDel;
    }

    public String getUserDel() 
    {
        return userDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("avatar", getAvatar())
            .append("email", getEmail())
            .append("password", getPassword())
            .append("username", getUsername())
            .append("phone", getPhone())
            .append("createTime", getCreateTime())
            .append("nickName", getNickName())
            .append("sex", getSex())
            .append("enabled", getEnabled())
            .append("userDel", getUserDel())
            .toString();
    }
}
